var myDocument = app.documents.item(0)
var myCharacterStyle= myDocument.characterStyles.item("反GiGu");//設置反GiGu字符樣式
try{
	myCharacterStyle= myDocument.characterStyles.item("反GiGu");
	myname = myCharacterStyle.name;
}
catch(myError){
	myCharacterStyle= myDocument.characterStyles.add({name:"反GiGu"});//設置反GiGu字符樣式
}
myCharacterStyle.appliedFont = "Ededris-vowa";
//myCharacterStyle.appliedFontSpacing=4;
app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.findWhat ="ྀ";
app.changeTextPreferences.changeTo ="G";
app.changeTextPreferences.appliedCharacterStyle= myCharacterStyle;
myDocument.changeText();
app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing;
alert("完工！")